package org.dromara.system.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.dromara.common.core.domain.R;
import org.dromara.system.domain.WbCompanyBlacklist;
import org.dromara.system.domain.WbCompanyInfo;
import org.dromara.system.domain.dto.WbCompanyBlacklistCountProductDTO;
import org.dromara.system.domain.dto.WbCompanyBlacklistCountProvinceDTO;
import org.dromara.system.domain.vo.WbCompanyBlacklistVo;
import org.dromara.system.domain.bo.WbCompanyBlacklistBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;
import org.dromara.system.domain.vo.WbProvinceVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * 企业黑名单Service接口
 *
 * @author Lion Li
 * @date 2024-03-22
 */
public interface IWbCompanyBlacklistService {

    /**
     * 查询企业黑名单
     */
    WbCompanyBlacklistVo queryById(Long id);

    /**
     * 查询企业黑名单列表
     */
    TableDataInfo<WbCompanyBlacklistVo> queryPageList(WbCompanyBlacklistBo bo, PageQuery pageQuery);

    /**
     * 查询企业黑名单列表
     */
    List<WbCompanyBlacklistVo> queryList(WbCompanyBlacklistBo bo);

    /**
     * 新增企业黑名单
     */
    Boolean insertByBo(WbCompanyBlacklistBo bo);

    /**
     * 修改企业黑名单
     */
    Boolean updateByBo(WbCompanyBlacklistBo bo);

    /**
     * 校验并批量删除企业黑名单信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    /**
     * 更新全部企业黑名单信息
     */
    R updateAllList(MultipartFile file);

    Integer queryListSum(Long companyId);

    TableDataInfo<WbCompanyBlacklistCountProvinceDTO> queryCountProvince();

    List<WbCompanyBlacklistCountProductDTO> queryCountProduct(String disposeWay);

    TableDataInfo<WbCompanyBlacklistVo> queryPageListZdy(WbCompanyBlacklistBo bo, PageQuery pageQuery);

    TableDataInfo<WbCompanyBlacklistVo> queryPageListXcx(WbCompanyBlacklistBo bo, PageQuery pageQuery);

    TableDataInfo<WbCompanyBlacklistVo> queryBlackOne(String blacklistStatus,String companyName, PageQuery pageQuery);
}
